﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package reprise.commands {
    import flash.events.*;

    public class AbstractCommand extends EventDispatcher implements ICommand {

        protected var m_queueParent:CompositeCommand;
        protected var m_id:int;// = 0
        protected var m_priority:int;// = 0
        protected var m_didSucceed:Boolean;

        public function didSucceed():Boolean{
            return (m_didSucceed);
        }
        public function set priority(_arg1:int):void{
            if (_arg1 != m_priority){
                m_priority = _arg1;
                if (m_queueParent){
                    m_queueParent.invalidatePriorities();
                };
            };
        }
        public function get priority():int{
            return (m_priority);
        }
        public function execute(... _args):void{
        }
        public function setQueueParent(_arg1:CompositeCommand):void{
            m_queueParent = _arg1;
        }
        public function get id():int{
            return (m_id);
        }
        public function set id(_arg1:int):void{
            m_id = _arg1;
        }

    }
}//package reprise.commands 
